<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
      layout:decorator="admin/public/layout">

<head>
    <title>SEO设置</title>
</head>
<div  layout:fragment="content">
    <section class="content-header">
        <h1>SEO设置</h1>
    </section>
    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <form th:object="${settingSeo}" role="form" name="addForm" id="register_form" method="POST" th:action="@{/admin/setting/seo}">
                    <input type="hidden" name="id" th:value="${GlobalSetting.seo.id}"/>
                    <div class="box box-default">
                        <div class="box-header with-border">
                            <h3 class="box-title">SEO设置规则</h3>
                        </div>
                        <div class="box-body">
                            <ol>
                                <li>网站名称:wzmc（应用范围：所有位置）</li>
                                <li>网站口号:wzkh（应用范围：所有位置）</li>
                                <li>话题列表:htlb（应用范围：问题、文章 查看页）</li>
                                <li>问题标题:wtbt（应用范围：问题查看页）</li>
                                <li>问题描述:wtms（应用范围：问题查看页）</li>
                                <li>问题状态:wtzt（应用范围：问题查看页）</li>
                                <li>文章标题:wzbt（应用范围：文章查看页）</li>
                                <li>文章摘要:wzzy（应用范围：文章查看页）</li>
                                <li>话题名称:htmc（应用范围：话题查看页）</li>
                                <li>话题名称:htmc（应用范围：话题查看页）</li>
                                <li>话题简介:htjj（应用范围：话题查看页）</li>
                            </ol>
                            <p>以上标签（必须包含大括号"{}"）可以通过添加在下面来优化页面SEO设置，多个标签之间可以用半角连字符"-"、半角","或半角空格隔开。
                                <br />留空为默认SEO设置，如果标签不再应用范围内则不显示此标签。</p>
                        </div>
                    </div>
                    <div class="box box-default">
                        <div class="box-header with-border">
                            <h3 class="box-title">首页</h3>
                        </div>
                        <div class="box-body">

                            <div class="form-group">
                                <label>Title</label>
                                <span class="text-muted">(关键字将包含在每一个页面的title里面)</span>
                                <input type="text" class="form-control" name="indexTitle" placeholder="Title" th:value="${settingSeo.indexTitle}"  />
                            </div>

                            <div class="form-group">
                                <label>Meta keywords</label>
                                <span class="text-muted">(给搜索引擎看的keywords)</span>
                                <input type="text" class="form-control" name="indexKeyword" placeholder="Meta keywords" th:value="${settingSeo.indexKeyword}"   />
                            </div>

                            <div class="form-group">
                                <label>Meta Description</label>
                                <span class="text-muted">(给搜索引擎看的Description)</span>
                                <input type="text" class="form-control" name="indexDescription" placeholder="Meta Description" th:value="${settingSeo.indexDescription}"   />
                            </div>
                        </div>
                    </div>
                    <div class="box box-default">
                        <div class="box-header with-border">
                            <h3 class="box-title">问题</h3>
                        </div>
                        <div class="box-body">

                            <div class="form-group">
                                <label>Title</label>
                                <span class="text-muted">(关键字将包含在每一个页面的title里面)</span>
                                <input type="text" class="form-control" name="questionTitle" placeholder="Title" th:value="${settingSeo.questionTitle}"   />
                            </div>

                            <div class="form-group">
                                <label>Meta keywords</label>
                                <span class="text-muted">(给搜索引擎看的keywords)</span>
                                <input type="text" class="form-control" name="questionKeyword" placeholder="Meta keywords" th:value="${settingSeo.questionKeyword}"   />
                            </div>

                            <div class="form-group">
                                <label>Meta Description</label>
                                <span class="text-muted">(给搜索引擎看的Description)</span>
                                <input type="text" class="form-control" name="questionDescription" placeholder="Meta Description" th:value="${settingSeo.questionDescription}"   />
                            </div>
                        </div>
                    </div>
                    <div class="box box-default">
                        <div class="box-header with-border">
                            <h3 class="box-title">文章</h3>
                        </div>
                        <div class="box-body">

                            <div class="form-group">
                                <label>Title</label>
                                <span class="text-muted">(关键字将包含在每一个页面的title里面)</span>
                                <input type="text" class="form-control" name="articleTitle" placeholder="Title" th:value="${settingSeo.articleTitle}"   />
                            </div>

                            <div class="form-group">
                                <label>Meta keywords</label>
                                <span class="text-muted">(给搜索引擎看的keywords)</span>
                                <input type="text" class="form-control" name="articleKeyword" placeholder="Meta keywords" th:value="${settingSeo.articleKeyword}"   />
                            </div>

                            <div class="form-group">
                                <label>Meta Description</label>
                                <span class="text-muted">(给搜索引擎看的Description)</span>
                                <input type="text" class="form-control" name="articleDescription" placeholder="Meta Description" th:value="${settingSeo.articleDescription}"   />
                            </div>
                        </div>
                    </div>
                    <div class="box box-default">
                        <div class="box-header with-border">
                            <h3 class="box-title">话题</h3>
                        </div>
                        <div class="box-body">

                            <div class="form-group">
                                <label>Title</label>
                                <span class="text-muted">(关键字将包含在每一个页面的title里面)</span>
                                <input type="text" class="form-control" name="topicTitle" placeholder="Title" th:value="${settingSeo.topicTitle}"   />
                            </div>

                            <div class="form-group">
                                <label>Meta keywords</label>
                                <span class="text-muted">(给搜索引擎看的keywords)</span>
                                <input type="text" class="form-control" name="topicKeyword" placeholder="Meta Keywords" th:value="${settingSeo.topicKeyword}"  />
                            </div>

                            <div class="form-group">
                                <label>Meta Description</label>
                                <span class="text-muted">(给搜索引擎看的Description)</span>
                                <input type="text" class="form-control" name="topicDescription" placeholder="Meta Description" th:value="${settingSeo.topicDescription}"   />
                            </div>
                        </div>
                    </div>
                    <div>
                        <button type="submit" class="btn btn-primary editor-submit">保存</button>
                        <button type="reset" class="btn btn-success">重置</button>
                    </div>
                </form>
            </div>
        </div>
    </section>
</div>